import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { i18n } from '@/locales'
import { Swipe, SwipeItem, Popover, Collapse, CollapseItem, Calendar } from 'vant'

//实现了 px转rem，还要安装 amfe-flexible
import 'amfe-flexible/index.js'

import '@/style/style.scss'
import '@/style/vantStyle.css'
// if (process.env.NODE_ENV === 'production') {
//   console.log = () => {}
// }

const app = createApp(App)

app.use(store)
app.use(router)
app.use(i18n)
app.use(Swipe)
app.use(SwipeItem)
app.use(Popover)
app.use(Collapse)
app.use(CollapseItem)
app.use(Calendar)
app.mount('#app')
